public class ShiftLeftAndRight {

    public static void main(String[] args) {
        //左移3位相当于乘以2的3次方
        System.out.println("-------------------------------------------------------------------------------" + (2 << 3));
        //右移3位相当于乘以16的3次方
        System.out.println("------------------------------------------------------------------------------" + (27 >> 3));
    }

}
